﻿@model IEnumerable<NewsMine.DomainObjects.WebSiteInfo>
@{
    ViewBag.Title = "List";
    Layout = "~/Views/Shared/_Layout.cshtml";
}
<h2>
    List</h2>
<p>
    @Html.ActionLink("Create New", "Create")
</p>
<table>
    @*   <tr>
        <th>
            Domain
        </th>
        <th>
            ParentDomain
        </th>
        <th>
            HomePageUrl
        </th>
        <th>
            Description
        </th>
        <th>
            Language
        </th>
        <th>
            FaviconIconUri
        </th>
        <th>
            Logo1Uri
        </th>
        <th>
            Logo2Uri
        </th>
        <th>
            Logo3Uri
        </th>
        <th>
            Logo4Uri
        </th>
        <th>
            IsHtmlScrapingEnabled
        </th>
        <th>
            FrequencyOfUpdates
        </th>
        <th>
            LastCrawledTimeStampGMT
        </th>
        <th>
            IsAdultContentSite
        </th>
        <th>
            UID
        </th>
        <th>
            Name
        </th>
        <th>
            LocalName
        </th>
        <th>
            IsActive
        </th>
        <th>
            CreatedTime
        </th>
        <th>
            CreatedBy
        </th>
        <th>
            ModifiedTime
        </th>
        <th>
            ModifiedBy
        </th>
        <th>
        </th>
    </tr>*@
    @foreach (var item in Model)
    {
        <tr>
            <td>
                <div style="width: 100px; height: 100px;">
                    <img alt='@item.Logo1Uri' src='@item.Logo1Uri' style='max-width:100px;max-height:100px;' />
                </div>
            </td>
             <td>

        <a target="_blank" class="btn btn-danger" href="/WebSiteInfo/Delete/@item.Domain">Delete @item.Domain</a>

            </td>
            <td>
                @Html.ActionLink("Edit", "Edit", new { id = item.Domain })
            </td>
             <td>
                @Html.DisplayFor(modelItem => item.Domain)
            </td>
            <td>
                @Html.DisplayFor(modelItem => item.Name)
            </td>
            <td>
                @Html.DisplayFor(modelItem => item.LocalName)
            </td>
            <td>
                @Html.DisplayFor(modelItem => item.Language)
            </td>
            <td>
                @Html.DisplayFor(modelItem => item.IsActive)
            </td>
           
           
            <td>
                @Html.DisplayFor(modelItem => item.HomePageUrl)
            </td>
             <td>
                @Html.DisplayFor(modelItem => item.Rank)
            </td>
             <td>
                @Html.DisplayFor(modelItem => item.AlexaRank)
            </td>
            <td>
                @Html.DisplayFor(modelItem => item.Description)
            </td>
            
            <td>
                @Html.DisplayFor(modelItem => item.FaviconIconUri)
            </td>
            <td>
                @Html.DisplayFor(modelItem => item.Logo2Uri)
            </td>
            @*        <td>
            @Html.DisplayFor(modelItem => item.Logo3Uri)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.Logo4Uri)
        </td>*@
            <td>
                @Html.DisplayFor(modelItem => item.IsHtmlScrapingEnabled)
            </td>
            <td>
                @Html.DisplayFor(modelItem => item.FrequencyOfUpdates)
            </td>
            @*        <td>
            @Html.DisplayFor(modelItem => item.LastCrawledTimeStampGMT)
        </td>*@
            <td>
                @Html.DisplayFor(modelItem => item.IsAdultContentSite)
            </td>
            @*        <td>
            @Html.DisplayFor(modelItem => item.UID)
        </td>*@ @*        <td>
            @Html.DisplayFor(modelItem => item.CreatedTime)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.CreatedBy)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.ModifiedTime)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.ModifiedBy)
        </td>*@
        </tr>
    }
</table>
